package com.cardone.platform.configuration.function;

import com.cardone.common.function.ReadDictionaryValueByTypeCodeAndCodeFunction;
import com.cardone.context.ContextHolder;
import com.cardone.platform.configuration.service.DictionaryService;

/**
 * 读取字典值
 *
 * @author yaohaitao
 *
 */
public class DefaultReadDictionaryValueByTypeCodeAndCodeFunction implements ReadDictionaryValueByTypeCodeAndCodeFunction {
	@Override
	public String execution(final String defaultValue, final String typeCode, final String code) {
		return ContextHolder.getBean(DictionaryService.class).readValueByTypeCodeAndCode(defaultValue, typeCode, code);
	}
}
